Optimal. Leaf size=23 \[ -\frac {\cos (e+f x)}{f (a+a \sin (e+f x))} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.01, antiderivative size = 23, normalized size of antiderivative = 1.00, number of steps
used = 1, number of rules used = 1, integrand size = 12, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.083, Rules used = {2727}
\begin {gather*} -\frac {\cos (e+f x)}{f (a \sin (e+f x)+a)} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 2727
Rubi steps
\begin {align*} \int \frac {1}{a+a \sin (e+f x)} \, dx &=-\frac {\cos (e+f x)}{f (a+a \sin (e+f x))}\\ \end {align*}
________________________________________________________________________________________
Mathematica [B] Leaf count is larger than twice the leaf count of optimal. \(48\) vs. \(2(23)=46\).
time = 0.03, size = 48, normalized size = 2.09 \begin {gather*} \frac {2 \sin \left (\frac {1}{2} (e+f x)\right ) \left (\cos \left (\frac {1}{2} (e+f x)\right )+\sin \left (\frac {1}{2} (e+f x)\right )\right )}{f (a+a \sin (e+f x))} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.18, size = 22, normalized size = 0.96
method | result | size |
derivativedivides | \(-\frac {2}{f a \left (\tan \left (\frac {f x}{2}+\frac {e}{2}\right )+1\right )}\) | \(22\) |
default | \(-\frac {2}{f a \left (\tan \left (\frac {f x}{2}+\frac {e}{2}\right )+1\right )}\) | \(22\) |
risch | \(-\frac {2}{f a \left ({\mathrm e}^{i \left (f x +e \right )}+i\right )}\) | \(23\) |
norman | \(\frac {2 \tan \left (\frac {f x}{2}+\frac {e}{2}\right )}{a f \left (\tan \left (\frac {f x}{2}+\frac {e}{2}\right )+1\right )}\) | \(31\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.29, size = 29, normalized size = 1.26 \begin {gather*} -\frac {2}{{\left (a + \frac {a \sin \left (f x + e\right )}{\cos \left (f x + e\right ) + 1}\right )} f} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.35, size = 46, normalized size = 2.00 \begin {gather*} -\frac {\cos \left (f x + e\right ) - \sin \left (f x + e\right ) + 1}{a f \cos \left (f x + e\right ) + a f \sin \left (f x + e\right ) + a f} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A]
time = 0.39, size = 27, normalized size = 1.17 \begin {gather*} \begin {cases} - \frac {2}{a f \tan {\left (\frac {e}{2} + \frac {f x}{2} \right )} + a f} & \text {for}\: f \neq 0 \\\frac {x}{a \sin {\left (e \right )} + a} & \text {otherwise} \end {cases} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 0.42, size = 22, normalized size = 0.96 \begin {gather*} -\frac {2}{a f {\left (\tan \left (\frac {1}{2} \, f x + \frac {1}{2} \, e\right ) + 1\right )}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 6.97, size = 21, normalized size = 0.91 \begin {gather*} -\frac {2}{a\,f\,\left (\mathrm {tan}\left (\frac {e}{2}+\frac {f\,x}{2}\right )+1\right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________